Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Preface
This Preface contains the following sections:
Purpose
This handbook provides information about various programming topics in Progress Dynamics®. Use it along with OpenEdge Development: Progress Dynamics Basic Development as a guide and reference to programming with Progress Dynamics.
Audience
This guide is designed for any developer familiar with the Progress® 4GL who is interested in building a new Progress application, or rearchitecting an existing application to bring it to a distributed GUI environment.
Organization
This book is organized in the following manner:
Chapter 1 "Writing Super Procedures for Progress Dynamics Objects"
Describes how to create custom super procedures for dynamic client-side objects, including the kind of code and programming style to use, and introduces an API to simplify the code you write. There is also discussion of dynamic User Interface events, and of Web development considerations.
Chapter 2 "Customizing Classes"
Explains how to extend the Progress Dynamics class hierarchy by adding your own custom classes. Also describes the Class Maintenance tool.
Chapter 3 "Advanced User Interface Design in Progress Dynamics"
Describes a single folder window that illustrates many of the features that support building complex windows and customizing behavior to suit the needs of your application. There is also a discussion of various techniques to use to take advantage of new features.
Chapter 4 "Caching Application Data on the Client"
Shows how to take advantage of various framework features to cache application data.
Chapter 5 "Using ADM2 Properties and Methods in Progress Dynamics"
Provides an overview of the properties and methods of the Application Development Model that are essential to Progress Dynamics application builders. It also provides guidance on how properties and methods are typically used.
Chapter 6 "Using the Progress Dynamics Managers"
Explains the role of Progress Dynamics managers, which are a set of service procedures that support a wide range of application needs. There is a brief overview of the Managers, a description of how they are constructed, and some guidelines on how to use specific Manager API calls in your applications. In addition, there are some examples designed to give you a better understanding of how to use the Mangers to provide support for special needs that they do not take care of automatically.
Chapter 7 "Creating a New Manager in Progress Dynamics"
Details the new template procedures and how you can use them to create managers of your own for your applications.
Chapter 8 "Understanding the Object Tables in the Progress Dynamics Repository"
Describes the Progress Dynamics Repository tables and their fields in detail in order to provide you with a complete understanding of the Repository database.
Typographical conventions
This manual uses the following typographical conventions:
Examples of syntax descriptions
In this example,
ACCUMis a keyword, andaggregateandexpressionare variables:
FORis one of the statements that can end with either a period or a colon, as in this example:
In this example,
STREAMstream,UNLESS-HIDDEN, andNO-ERRORare optional:
In this example, the outer (small) brackets are part of the language, and the inner (large) brackets denote an optional item:
A called external procedure must use braces when referencing compile-time arguments passed by a calling procedure, as shown in this example:
In this example,
EACH,FIRST, andLASTare optional, but you can choose only one of them:
In this example, you must include two expressions, and optionally you can include more. Multiple expressions are separated by commas:
In this example, you must specify
MESSAGEand at least oneexpressionorSKIP[ (n) ], and any number of additionalexpressionorSKIP[ (n) ] is allowed:
In this example, you must specify {
include-file, then optionally any number ofargumentor&argument-name = "argument-value", and then terminate with }:
Long syntax descriptions split across lines
Some syntax descriptions are too long to fit on one line. When syntax descriptions are split across multiple lines, groups of optional and groups of required items are kept together in the required order.
In this example,
WITHis followed by six optional items:
Complex syntax descriptions with both required and optional elements
Some syntax descriptions are too complex to distinguish required and optional elements by bracketing only the optional elements. For such syntax, the descriptions include both braces (for required elements) and brackets (for optional elements).
In this example,
ASSIGNrequires either one or morefieldentries or onerecord. Options available withfieldorrecordare grouped with braces and brackets:
Example procedures
This manual provides numerous example procedures that illustrate syntax and concepts. You can access the example files and details for installing the examples from the following locations:
After you have installed the examples, you can find the samples for Dynamics Advanced Development in the following location:
OpenEdge messages
OpenEdge displays several types of messages to inform you of routine and unusual occurrences:
- Execution messages inform you of errors encountered while OpenEdge is running a procedure; for example, if OpenEdge cannot find a record with a specified index field value.
- Compile messages inform you of errors found while OpenEdge is reading and analyzing a procedure before running it; for example, if a procedure references a table name that is not defined in the database.
- Startup messages inform you of unusual conditions detected while OpenEdge is getting ready to execute; for example, if you entered an invalid startup parameter.
After displaying a message, OpenEdge proceeds in one of several ways:
- Continues execution, subject to the error-processing actions that you specify or that are assumed as part of the procedure. This is the most common action taken after execution messages.
- Returns to the Progress Procedure Editor, so you can correct an error in a procedure. This is the usual action taken after compiler messages.
- Halts processing of a procedure and returns immediately to the Progress Procedure Editor. This does not happen often.
- Terminates the current session.
OpenEdge messages end with a message number in parentheses. In this example, the message number is
200:
If you encounter an error that terminates OpenEdge, note the message number before restarting.
Obtaining more information about OpenEdge messages
In Windows platforms, use OpenEdge online help to obtain more information about OpenEdge messages. Many OpenEdge tools include the following Help menu options to provide information about messages:
- Choose Help
Recent Messages to display detailed descriptions of the most recent OpenEdge message and all other messages returned in the current session.
- Choose Help
Messages and then type the message number to display a description of a specific OpenEdge message.
- In the Progress Procedure Editor, press the HELP key or F1.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |